﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DotNet.Random.Date
{
    /// <summary>
    /// 昨天随机类(仅仅只有天)，继承于DayRandService
    /// </summary>
    public class YesterdayRandService : DayRandService
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="YesterdayRandService" /> class.
        /// </summary>
        public YesterdayRandService()
        {
            this.Serial.Clear();
            var day = System.DateTime.Now.AddDays(-1).Day;
            this.Serial.Add(day);
        }
    }
}
